home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
lib
/
mntlib44.zoo
/
mntlib
/
fork.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-06
|
258b
|
24 lines
/* public domain fork() for MiNT */
#include <unistd.h>
#include <errno.h>
#include <mintbind.h>
int
fork()
{
int r;
extern int __mint;
if (__mint == 0)
r = -EINVAL;
else
r = (int)Pfork();
if (r < 0) {
errno = -r;
return -1;
}
return r;
}